#-*-encoding=utf-8-*-
name=u'require_tracing'
title=u'需求跟踪'
description=''
fields=(
    TextLineField(
        description='',
        title=u'需求名',
        validation_exp=u'',
        write_condition=u'',
        size=36,
        default_value_exp=u'""',
        name=u'title'
),
    TextField(
        rows=5,
        description='',
        title=u'需求详述',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'description'
),
    TextField(
        rows=5,
        description='',
        title=u'解决方案',
        cols=30,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'solution'
),
    TextField(
        rows=5,
        description='',
        title=u'需求背景',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'reason'
),
    SingleSelectField(
        title=u'处理版本',
        vocabulary_exp=u'flowsettings["versions"]',
        limit=4,
        write_condition=u'',
        default_value_exp=u'""',
        name=u'version'
),
    SingleSelectField(
        title=u'所属模块',
        vocabulary_exp=u'flowsettings["modules"]',
        limit=4,
        write_condition=u'',
        default_value_exp=u'""',
        name=u'module'
),
    PersonSelectField(
        title=u'设计人员',
        multiple_selection=False,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'flowsettings["design_team"]',
        name=u'designer'
),
    PersonSelectField(
        title=u'开发人员',
        multiple_selection=False,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'flowsettings["dev_team"]',
        name=u'developer'
),
    PersonSelectField(
        description='',
        title=u'测试人员',
        validation_exp=u'',
        multiple_selection=False,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u"flowsettings['test_team']",
        name=u'tester'
),)

displayed_columns = [u'title', u'module', u'version']
fields_validation_script=ur"""ITagsManager(sheet).addTag(sheet['version'], True)
ITagsManager(sheet).addTag(sheet['module'], True)"""
